const ENDPOINT = '/mock/hello.json';

export default async function getHello(options?: RequestInit) {
  const res = await fetch(ENDPOINT, options);
  if (res.ok) {
    const data: Record<string, any> = await res.json();
    return data;
  } else {
    return null;
  }
}
